package oas.domain;

import java.util.Date;

/**
 * 
 * 请假信息类
 * 
 * @author wjy
 * @version 1.0.0
 *
 */
public class Leave {

	private Long id;
	private User applicant;
	private Date applyDate;
	private User handler;
	private Date handleTime;
	private String status;
	private LeaveType type;
	
	/**
	 * @param id 请假id
	 * @param applicant 申请人
	 * @param applyDate 申请时间
	 * @param handler 处理人
	 * @param handleTime 处理时间
	 * @param status 状态
	 * @param type 请假类型
	 */
	public Leave(Long id, User applicant, Date applyDate, User handler, Date handleTime, String status, LeaveType type) {
		super();
		this.id = id;
		this.applicant = applicant;
		this.applyDate = applyDate;
		this.handler = handler;
		this.handleTime = handleTime;
		this.status = status;
		this.type = type;
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the applicant
	 */
	public User getApplicant() {
		return applicant;
	}

	/**
	 * @param applicant the applicant to set
	 */
	public void setApplicant(User applicant) {
		this.applicant = applicant;
	}

	/**
	 * @return the applyDate
	 */
	public Date getApplyDate() {
		return applyDate;
	}

	/**
	 * @param applyDate the applyDate to set
	 */
	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

	/**
	 * @return the handler
	 */
	public User getHandler() {
		return handler;
	}

	/**
	 * @param handler the handler to set
	 */
	public void setHandler(User handler) {
		this.handler = handler;
	}

	/**
	 * @return the handleTime
	 */
	public Date getHandleTime() {
		return handleTime;
	}

	/**
	 * @param handleTime the handleTime to set
	 */
	public void setHandleTime(Date handleTime) {
		this.handleTime = handleTime;
	}

	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * @return the type
	 */
	public LeaveType getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(LeaveType type) {
		this.type = type;
	}
	
	
	
}
